package com.ItemsRent.IService.service;

import java.util.List;

import com.ItemsRent.IDao.dao.BaseDAO;
import com.ItemsRent.IService.IRule;
import com.ItemsRent.model.CheckRule;

public class RuleServiceImpl implements IRule{

	private BaseDAO<CheckRule> ruleDao =new BaseDAO<CheckRule>();

	public BaseDAO<CheckRule> getRuleDao() {
		return ruleDao;
	}

	public void setRuleDao(BaseDAO<CheckRule> ruleDao) {
		this.ruleDao = ruleDao;
	}
	
	public List<CheckRule> findAllRule(){
		//System.out.println("进到这里0000000000000000000000000000000000000000000000000000000000000000");
		String hql="from CheckRule";
		List<CheckRule> list= ruleDao.list(hql);
		//System.out.println(hql);
		return list;
	}
	
}
